/************************************************************************/
/*																		*/
/*		School Hangover Project											*/
/*																		*/
/*		IMAC 2010														*/
/*		Author : 	Helena Duchaussoy									*/
/*					Isabelle Gouwy										*/
/*					Nathalie Kuoch										*/
/*					Franck Letellier									*/
/*					Louise Pequignot									*/
/*																		*/
/*		E-mail: flo-in-underware@googlegroups.com						*/
/*																		*/
/************************************************************************/

#ifndef __STAGE_H__
#define __STAGE_H__

#include <string>
#include <vector>
#include <osg/Group>
#include <osg/Geode>
#include <osg/Vec3>
#include <stdio.h>
#include <math.h>
#include <sstream>
#include <string>
#include "AbstractStage.h"
#include "InteractiveObject.h"


class Room;

class Stage: public AbstractStage {

public: 
	Stage(const std::string& sname = "mainStage");
	~Stage();

	virtual void init();
	virtual void update();
	virtual bool isFinished();
	virtual const osg::Vec3d& getPlayerPos();
	osg::Node * corridor ;
	bool computeCollision(Player* player);
	bool computeInteraction(Player* player);
private:
    std::vector<Room*>	m_vroom;
};

#endif //__STAGE_H__
